// 参数决定重载签名
function sum(parameter0: number, parameter1: string): number;
function sum(parameter0: string, parameter1: number): string;


function sum(parameter0: any, parameter1: any): any {
    return parameter0 + parameter1
}

console.log(sum('20',30))
console.log(sum('20', 30))
// console.log(sum({a: 1}, {b: 2}))
// console.log(sum(false, 20))


